package com.woniuxy.woniubookmanager.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.woniubookmanager.entity.UrlPermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.woniubookmanager.vo.PermissionMenu;

import java.util.List;

/**
 * <p>
 * 菜单和接口权限定义 服务类
 * </p>
 *
 * @author wugd
 * @since 2022-11-29 04:03:13
 */
public interface UrlPermissionService extends IService<UrlPermission> {

    List<PermissionMenu> getAllMenu();

    Page<UrlPermission> getPermissionByPage(Integer now, Integer size, String pname);

    List<PermissionMenu> getParentMenu();

    void removePermissionById(Long id);

    Long[] getPermissionIdByRoleId(Long id);

    List<PermissionMenu> getPermissionMenuByUsername(String name);
}
